/**
 * 
 */
package com.hz.winnie.demands.dao;

import java.util.List;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.hz.winnie.demands.pojo.DemLifeCycle;

/**
 * @description 生命周期DAO实现
 * @author winnie
 * @date 2011-4-23
 * @version 1.0
 */
public class DemLifeCycleDaoImpl extends SqlMapClientDaoSupport implements
	DemLifeCycleDao {

    /*
     * (non-Javadoc)
     * 
     * @see
     * com.hz.winnie.demands.dao.DemLifeCycleDao#listLifeCycleByDemandId(com
     * .hz.winnie.demands.pojo.DemLifeCycle)
     */
    @SuppressWarnings("unchecked")
    @Override
    public List<DemLifeCycle> listLifeCycleByDemandId(DemLifeCycle lifeCycle) {
	return getSqlMapClientTemplate().queryForList(
		"lifeCycle.listLifeCycleByDemandId", lifeCycle);
    }

    /*
     * (non-Javadoc)
     * 
     * @see
     * com.hz.winnie.demands.dao.DemLifeCycleDao#create(com.hz.winnie.demands
     * .pojo.DemLifeCycle)
     */
    @Override
    public void create(DemLifeCycle demLifeCycle) {
	getSqlMapClientTemplate().insert("lifeCycle.create", demLifeCycle);
    }

}
